﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RXY_Mall.Services.Shop.Dto
{
    /// <summary>
    /// 批量添加店铺输入信息
    /// </summary>
    public class AddShopsInput : MangerBaseInput
    {
        /// <summary>
        /// 店铺录入信息
        /// </summary>
        public List<ShopInput> shops { get; set; }
    }

    /// <summary>
    /// 店铺信息
    /// </summary>
    public class ShopInput
    {
        /// <summary>
        /// 对接公司编号
        /// </summary>
        [Required(ErrorMessage = "对接公司编号不能为空")]
        public string api_company_id { get; set; }
        /// <summary>
        /// 对接服务器编号
        /// </summary>
        [Required(ErrorMessage = "对接服务器编号不能为空")]
        public string api_server_id { get; set; }
        /// <summary>
        /// 店铺编号
        /// </summary>
        [Required(ErrorMessage = "店铺编号不能为空")]
        public string api_shop_id { get; set; }
        /// <summary>
        /// 店铺名称
        /// </summary>
        [Required(ErrorMessage = "店铺名称不能为空")]
        public string shop_name { get; set; }
        /// <summary>
        /// 店铺类型
        /// </summary>
        [Required(ErrorMessage = "店铺类型不能为空")]
        public byte shop_type { get; set; }
        /// <summary>
        /// 联系人
        /// </summary>
        [Required(ErrorMessage = "联系人不能为空")]
        public string contacts_name { get; set; }
        /// <summary>
        /// 联系电话
        /// </summary>
        [Required(ErrorMessage = "联系电话不能为空")]
        public string contacts_phone { get; set; }
        /// <summary>
        /// 区域
        /// </summary>
        [Required(ErrorMessage = "区域不能为空")]
        public string area { get; set; }
        /// <summary>
        /// 详细地址
        /// </summary>
        [Required(ErrorMessage = "详细地址不能为空")]
        public string address { get; set; }
        /// <summary>
        /// 省级国标码
        /// </summary>
        [Required(ErrorMessage = "省级国标码不能为空")]
        public string province_code { get; set; }
        /// <summary>
        /// 市级国标码
        /// </summary>
        [Required(ErrorMessage = "市级国标码不能为空")]
        public string city_code { get; set; }
        /// <summary>
        /// 区级国标码
        /// </summary>
        [Required(ErrorMessage = "区级国标码不能为空")]
        public string country_code { get; set; }
        
    }
}
